package com.dream.vo.base;

import java.util.Date;

import com.dream.model.app.AppAbstractUser;
import com.dream.utils.date.DateParseUtils;


/**
 * 
 * @copyright evan
 * @author evan
 * @Revision
 * @date 2013-9-15
 */
public class FileUploadVO{
	
	private String fileId;
	
	public String getFileId() {
		return fileId;
	}

	public void setFileId(String fileId) {
		this.fileId = fileId;
	}

	public String getUri(final AppAbstractUser user,final String root){
		
		return new StringBuilder(root)
		.append(user.getId())
		.append("/")
		.append(DateParseUtils.format(new Date(), "yyyyMMdd"))
		.append("/")
		.toString();
	}
}
